package org.casper.outofmemory;

import org.casper.gc.User;

public class Test {
	public static void main(String[] args) {
		Test test = new Test();
		int num = 9;
		User u1 = new User("NO123","赵信","123");
		User u2 = new User("NO234","泰坦","234");
		test.change1(num);
		test.change2(u1);
		test.change3(u2);
	}
	public void change1(int i){
		i=1234;
	}
	public void change2(User user){
		user = new User("NO345","张无忌","345");
	}
	public void change3(User user){
		user.setName("赵敏");
	}
}
